package cn.lyvust.demo.shili02;

/**
 * Description:
 * date: 2021-5-11 22:08
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class ClassFourThread extends Thread{
    //重写run()方法，点击左侧红色竖箭头查看继承类
    public void run(){
        for(int i=1; i<100; i++){
            // Thread.currentThread().getName() 获取当前线程的名字
            System.out.println(Thread.currentThread().getName() + ":"+i);
        }
    }
}
